package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Answer;
import cn.wolfcode.trip.base.query.AnswerQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAnswerService {
    /**
     * 高级查询 查询某用户的所有回答
     * @param qo
     * @return
     */
    PageInfo queryByUserId(QueryObject qo);

    List<Answer> selectByUserId(Long userId);

    PageInfo queryByQuestionId(QueryObject qo);

    void save(Answer answer);
}
